package com.yt.sys.models.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "SysAdminDTO", description = "管理员信息DTO")
public class SysAdminDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "管理员唯一ID")
    private Integer adminId;

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "登录用户名（管理端账号）")
    private String username;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码")
    private String password;

    @NotBlank(message = "真实姓名不能为空")
    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "联系电话（管理员联系方式，非登录用）")
    private String phone;

    @NotNull(message = "账号状态不能为空")
    @ApiModelProperty(value = "账号状态（0=禁用，1=正常）")
    private Integer status = 1;
}